


import request from '@/axios';
import { baseUrl } from '@/config/env';

// 权限中心 员工管理-添加员工
export const AddEmployees = (data) => request({
    url: baseUrl + '/permissionCenter/staffManagement/AddEmployees',
    method: 'post',
    data
})
// 员工管理-员工列表
export const employeeList = (data) => request({
    url: baseUrl + '/permissionCenter/staffManagement/employeeList',
    method: 'post',
    data
});
// 员工管理-员工修改
export const updateEmployee = (data) => request({
    url: baseUrl + '/permissionCenter/staffManagement/updateEmployee',
    method: 'post',
    data
})
// 员工管理-员工删除
export const deleteEmployee = (id) => request({
    url: baseUrl + `/permissionCenter/staffManagement/deleteEmployee/${id}`,
    method: 'get'
});
// 员工管理-角色列表
export const getRoles = () => request({
    url: baseUrl + `/permissionCenter/staffManagement/getRoles`,
    method: 'get'
});
// 角色管理-角色列表
export const roleList = (data) => request({
    url: baseUrl + `/permissionCenter/roleManagement/roleList`,
    method: 'post',
    data
});
// 角色管理-新增角色
export const addRole = (data) => request({
    url: baseUrl + `/permissionCenter/roleManagement/addRole`,
    method: 'post',
    data
});
// 角色管理-修改角色
export const updateRole = (data) => request({
    url: baseUrl + `/permissionCenter/roleManagement/updateRole`,
    method: 'post',
    data
});
//角色管理-分配权限
export const roleListPermission = (data) => request({
    url: baseUrl + `/permissionCenter/roleManagement/roleListPermission`,
    method: 'post',
    data
});
// 员工管理-角色列表
export const deleteRole = (id) => request({
    url: baseUrl + `/permissionCenter/roleManagement/deleteRole/${id}`,
    method: 'get'
});
// 角色管理-角色权限查询
export const getRolePermission = (id) => request({
    url: baseUrl + `/permissionCenter/roleManagement/getRolePermission/${id}`,
    method: 'get'
});
// 菜单权限管理-菜单权限列表查询
export const permissionList = (data) => request({
    url: baseUrl + `/permissionCenter/permissionManagement/permissionList`,
    method: 'post',
    data
});
// 菜单权限管理-菜单权限列表删除
export const deletePermissionInfo = (id) => request({
    url: baseUrl + `/permissionCenter/permissionManagement/deletePermissionInfo/${id}`,
    method: 'get'
});
// 菜单权限管理-新增菜单权限
export const addPermissionInfo = (data) => request({
    url: baseUrl + `/permissionCenter/permissionManagement/addPermissionInfo`,
    method: 'post',
    data
});
// 菜单权限管理-菜单权限列表修改
export const updatePermissionInfo = (data) => request({
    url: baseUrl + `/permissionCenter/permissionManagement/updatePermissionInfo`,
    method: 'post',
    data
});
// 菜单权限管理-父级菜单列表查询
export const addPermissionParentList = (type, permissionType) => request({
    url: baseUrl + `/permissionCenter/permissionManagement/addPermissionParentList/${type}/${permissionType}`,
    method: 'get',

});


// 菜单权限管理-设置-轮播图-新增
export const carouselManagementAdd = (data) => request({
    url: baseUrl + `/sys/carouselManagement/add`,
    method: 'post',
    data
});
// 菜单权限管理-设置-轮播图-修改
export const carouselManagementUpdate = (data) => request({
    url: baseUrl + `/sys/carouselManagement/update`,
    method: 'post',
    data
});
// 菜单权限管理-设置-轮播图-列表
export const carouselManagementList = (data) => request({
    url: baseUrl + `/sys/carouselManagement/list`,
    method: 'post',
    data
});
//菜单权限管理-设置-轮播图-列表删除
export const carouselManagementDelete = (id) => request({
    url: baseUrl + `/sys/carouselManagement/delete/${id}`,
    method: 'get',
});
// 菜单权限管理-设置-轮播管理-轮播分类-新增
export const carouselManagementTypeAdd = (data) => request({
    url: baseUrl + `/sys/carouselManagement/type/add`,
    method: 'post',
    data
});
// 菜单权限管理-设置-轮播管理-轮播分类-修改
export const carouselManagementTypeUpdate = (data) => request({
    url: baseUrl + `/sys/carouselManagement/type/update`,
    method: 'post',
    data
});
// 菜单权限管理-设置-轮播管理-轮播分类-列表
export const carouselManagementTypeList = (data) => request({
    url: baseUrl + `/sys/carouselManagement/type/list`,
    method: 'post',
    data
});
//菜单权限管理-设置-轮播管理-轮播分类-删除
export const carouselManagementTypeDelete = (id) => request({
    url: baseUrl + `/sys/carouselManagement/type/delete/${id}`,
    method: 'get',
});
//菜单权限管理-设置- 轮播管理-轮播分类-获取所有分类
export const carouselManagementTypelistAll = () => request({
    url: baseUrl + `/sys/carouselManagement/type/listAll`,
    method: 'get',
});


// 菜单权限管理-设置-金刚区-新增
export const carouselManagementMenuAdd = (data) => request({
    url: baseUrl + `/sys/carouselManagementMenu/MenuAdd`,
    method: 'post',
    data
});
// 菜单权限管理-设置-金刚区-修改
export const carouselManagementMenuUpdate = (data) => request({
    url: baseUrl + `/sys/carouselManagementMenu/update`,
    method: 'post',
    data
});
// 菜单权限管理-设置-金刚区-列表
export const carouselManagementMenuList = (data) => request({
    url: baseUrl + `/sys/carouselManagementMenu/list`,
    method: 'post',
    data
});
//菜单权限管理-设置-金刚区-列表删除
export const carouselManagementMenuDelete = (id) => request({
    url: baseUrl + `/sys/carouselManagementMenu/delete/${id}`,
    method: 'get',
});

// 菜单权限管理-设置-金刚区-分类-新增
export const carouselManagementTypeMenuAdd = (data) => request({
    url: baseUrl + `/sys/adamant/type/add`,
    method: 'post',
    data
});
// 菜单权限管理-设置-金刚区-分类-修改
export const carouselManagementTypeMenuUpdate = (data) => request({
    url: baseUrl + `/sys/adamant/type/update`,
    method: 'post',
    data
});
// 菜单权限管理-设置-金刚区-分类-列表
export const carouselManagementTypeMenuList = (data) => request({
    url: baseUrl + `/sys/adamant/type/list`,
    method: 'post',
    data
});
//菜单权限管理-设置-金刚区-分类-列表删除
export const carouselManagementTypeMenuDelete = (id) => request({
    url: baseUrl + `/sys/adamant/type/delete/${id}`,
    method: 'get',
});
//菜单权限管理-设置- 金刚区设置-分类-获取所有分类
export const carouselManagementTypeMenulistAll = () => request({
    url: baseUrl + `/sys/adamant/type/listAll`,
    method: 'get',
});


// 菜单权限管理-设置-发布攻略-新增
export const newsManagementMenuAdd = (data) => request({
    url: baseUrl + `/sys/newsManagement/add`,
    method: 'post',
    data
});
// 菜单权限管理-设置-发布攻略-修改
export const newsManagementUpdate = (data) => request({
    url: baseUrl + `/sys/newsManagement/update`,
    method: 'post',
    data
});
// 菜单权限管理-设置-发布攻略-列表
export const newsManagementList = (data) => request({
    url: baseUrl + `/sys/newsManagement/list`,
    method: 'post',
    data
});
//菜单权限管理-设置-发布攻略-列表删除
export const newsManagementDelete = (id) => request({
    url: baseUrl + `/sys/newsManagement/delete/${id}`,
    method: 'get',
});

// 菜单权限管理-设置-VIP设置-保存
export const memberSettingsAdd = (data) => request({
    url: baseUrl + `/memberCenter/memberSettings/add`,
    method: 'post',
    data
});
//菜单权限管理-设置-VIP设置-回显
export const memberSettings = () => request({
    url: baseUrl + `/memberCenter/memberSettings`,
    method: 'get',
});
// 菜单权限管理-设置-VIP设置-权益新增
export const memberEquitiesAdd = (data) => request({
    url: baseUrl + `/memberCenter/memberEquities/add`,
    method: 'post',
    data
});
// 菜单权限管理-设置-VIP设置-权益修改
export const memberEquitiesUpdate = (data) => request({
    url: baseUrl + `/memberCenter/memberEquities/update`,
    method: 'post',
    data
});
// 菜单权限管理-设置-VIP设置-权益列表
export const memberEquitiesList = (data) => request({
    url: baseUrl + `/memberCenter/memberEquities/list`,
    method: 'post',
    data
});
// 菜单权限管理-设置-VIP设置-权益删除
export const memberEquitiesDelete = (id) => request({
    url: baseUrl + `/memberCenter/memberEquities/delete/${id}`,
    method: 'get'
});